package com.example.service;

import com.example.pojo.Event;
import com.example.pojo.PageBean;
import com.example.pojo.Result;
import com.example.pojo.User;
import com.example.vo.EventVO;

import java.time.LocalDate;
import java.util.List;

public interface EventService {

    EventVO getById(Integer eventID);

    Result deleteByIDs(List<Integer> eventIDs) throws Exception;

    void save(Event event);

    void update(Event event);

    PageBean page(Integer page, Integer pageSize, String eventName, Short place, Short onSale, Integer userID, LocalDate begin, LocalDate end);

    void haltSale(Integer eventID);

    void onSale(Integer eventID);
}
